<script>
import {
  Component,
  Emit,
  Inject,
  Model,
  Prop,
  Provide,
  Vue,
  Watch
} from "vue-property-decorator";

@Component
export default class App extends Vue { 
  @Prop({ type: Object, default: () => ({}) })
  option;

  render(createElement) {
    return createElement(this.option.tag, {
      attrs:{
        stylejson:JSON.stringify(this.option.style),
      },
      props: {},
      style: {
        ...this.option.style
      }
    });
  }
}
</script>

<style lang="less" >
</style>